Repository navigation
Ensure that shared labels are consistently updated. - #177
Conversation
|
What I don't like about this fix is that it will fool mpl by turning the |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
[x] Need to handle non trivial layout |
474a2e7 to
e63b763
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR addresses issue #176 by ensuring that shared axis labels are consistently updated across subplots. Key changes include:
- Adding two new test cases in tests/test_axes.py to verify proper shared label behavior.
- Introducing a new helper method _get_border_axes in figure.py for identifying boundary axes.
- Updating axes sharing logic in axes/cartesian.py to correctly handle tick label visibility on border axes.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ultraplot/tests/test_axes.py | New test cases to validate shared label consistency. |
| ultraplot/figure.py | Added _get_border_axes to retrieve border axes in various layouts. |
| ultraplot/axes/cartesian.py | Modified the shared axes tick label update logic. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
beckermr
left a comment
There was a problem hiding this comment.
The tests here should be used to generate an image comparison plot.
|
An image comparison test is failing, but the artifact has no images in it to look at. I think this is a bug. |
|
I am actually tending to use less of the pytest-mpl if possible. These tests take much longer too complete than regular pytests. Currently, the test suite runs over 12 minutes I believe, which is rather long. I think we should move to more selectivel visual tests that benchmark the visual output to reduce the test running times. |
|
Need to fix the edgecase where it is not doing this for alt/twin axes. |

Fixes #176
Details
codewill now be correct: